import {
	defineStore
} from 'pinia';
const useThemeStore = defineStore('theme', {
	state: () => ({
		blue: {
			'--theme-color': '#5F83F9',
		},
		green: {
			'--theme-color': '#24AC39',
		},
		// 主题方案
		themeList: [{
			name: '蓝色',
			value: 'blue'
		}, {
			name: '绿色',
			value: 'green'
		}],
		// 当前主题
		theme: 'blue',
	}),
	actions: {
		// 设置主题
		setTheme (theme) {
			this.theme = this[theme];
		},
	}
})
export default useThemeStore